package lms.entity;

import java.util.Date;

/**
 * @description: 图书基本信息实体类
 * @author: Grape_Pip
 * @time: 2021/06/21
 */
public class Book {
    /** 图书编号   */
    private int bookISBN;
    /** 图书名称   */
    private String bookName;
    /** 图书作者   */
    private String bookAuthor;
    /** 图书库存   */
    private int bookStock;
    /** 图书出版社   */
    private String bookpublish;
    /** 图书出版日期   */
    private Date bookPublishDate;
    /** 图书类型   */
    private String bookType;

    public Book() {
    }

    public Book(int bookISBN, String bookName, String bookAuthor, int bookStock, String bookpublish, Date bookPublishDate, String bookType) {
        this.bookISBN = bookISBN;
        this.bookName = bookName;
        this.bookAuthor = bookAuthor;
        this.bookStock = bookStock;
        this.bookpublish = bookpublish;
        this.bookPublishDate = bookPublishDate;
        this.bookType = bookType;
    }

    public int getBookISBN() {
        return bookISBN;
    }

    public void setBookISBN(int bookISBN) {
        this.bookISBN = bookISBN;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getBookAuthor() {
        return bookAuthor;
    }

    public void setBookAuthor(String bookAuthor) {
        this.bookAuthor = bookAuthor;
    }

    public int getBookStock() {
        return bookStock;
    }

    public void setBookStock(int bookStock) {
        this.bookStock = bookStock;
    }

    public String getBookpublish() {
        return bookpublish;
    }

    public void setBookpublish(String bookpublish) {
        this.bookpublish = bookpublish;
    }

    public Date getBookPublishDate() {
        return bookPublishDate;
    }

    public void setBookPublishDate(Date bookPublishDate) {
        this.bookPublishDate = bookPublishDate;
    }

    public String getBookType() {
        return bookType;
    }

    public void setBookType(String bookType) {
        this.bookType = bookType;
    }

    @Override
    public String toString() {
        return
                "ISBN：" + bookISBN + "  " +
                "书名：" + bookName + "  " +
                "作者：" + bookAuthor + "  " +
                "库存：" + bookStock + "  " +
                "出版社：" + bookpublish + "  " +
                "出版日期：" + bookPublishDate + "  " +
                "图书类型：" + bookType + "  ";
    }
}
